只要计时器上还有时间,我们就可以在控制台上添加垃圾。
- 在事件内部使用 if 以测试 timer 的值是否大于 > 0。
- 在 if 语句中,添加 Random Choice。将其命名为litter_image。将参数设置为 all_litter。
- 将 Sprite at Position 拖动到你的时间内部。将其命名为 new_litter。
- 将图像名称更改为变量 litter_image。更改坐标 x,y。
To navigate the page using the TAB key, first press ESC to exit the code editor.